<div class="navbar navbar-inverse">
    <div class="navbar-inner">
        <div class="container-fluid">
            <button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button"><span
                    class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button>
            <a href="index.php" target="_blank" class="brand"><img src="/css/coreCss/img/favicon.png"><span
                    style="display: inline-block;margin-top: -5px">雅思在线后台</span></a>

            <div class="nav-collapse navbar-responsive-collapse">
                <ul class="nav">
                    <?php if (in_array('content', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'content' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'content' ?>/info/index"><?php echo '内容管理' ?></a>
                        </li>
                    <?php } ?>
                    <?php if (in_array('exercise', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'exercise' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'exercise' ?>/index/index"><?php echo '剑雅真题' ?></a>
                        </li>
                    <?php } ?>
                    <?php if (in_array('user', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'user' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'user' ?>/user/index"><?php echo '用户管理' ?></a>
                        </li>
                    <?php } ?>
                    <?php if (in_array('applets', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'applets' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'applets' ?>/index/index"><?php echo '百度小程序管理' ?></a>
                        </li>
                    <?php } ?>
                    <?php if (in_array('test', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'test' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'test' ?>/question/index"><?php echo '能力测评' ?></a>
                        </li>
                    <?php } ?>

                    <?php if (in_array('weixin', $navData)) { ?>
                        <li class="<?php echo Yii::$app->controller->module->id == 'weixin' ? 'active' : '' ?>">
                            <a href="<?php echo baseUrl ?>/<?php echo 'weixin' ?>/product/index"><?php echo '微信399' ?></a>
                        </li>
                    <?php } ?>
                </ul>
                <ul class="nav pull-right">
                    <li>
                        <a href="<?php echo baseUrl ?>/admin/role/index">后台权限管理</a>
                    </li>
                    <li>
                        <a href="<?php echo baseUrl ?>/admin/index/index">后台首页</a>
                    </li>
                    <!--                    <li>-->
                    <!--                        <a href="--><?php //echo baseUrl?><!--/user/login/html">生成静态页</a>-->
                    <!--                    </li>-->
                    <li>
                        <a href=""> <?php echo "欢迎您,管理员：" . $_SESSION['userName']; ?></a>
                    </li>
                    <li>
                        <a href="/admin/login/login-out">退出管理</a>
                    </li>
                </ul>
            </div>

        </div>
    </div>
</div>